package com.example.zjx8969.myapplication.beans;

import java.util.List;

/**
 * Created by wjj3771 on 2016/5/18.
 */
public class CommodityItem {

    private String title;
    private String subtitle;
    private int shopId;
    private String code;
    private int shopType;
    private String eventName;
    private String imageUrl;
    private String imageMd5;
    private String thumbUrl;
    private String thumbMd5;
    private String packageUrl;
    private String packageMd5;
    //    private String bannerUrl;
//    private String bannerMd5;
    private String description;
    //    private String shortDescription;
    private int isFree;
    private String price;
    //    private int imageW;
//    private int imageH;
//    private String actionCode;
    private String store;
    private String alipay;
    private String packageId;
    private String effectUrl;
    private String effectMd5;
    //    private String effectLargeUrl;
//    private String effectLargeMd5;
    //    private String updateDate;
//    private String designer;
    private String previewTitle;
    private String previewUrl;
    //    private int categoryId;
    private String showCategoryCode;
    private String showSubCategoryCode;
    //    private String clientVer;
    //    private int recommend;
    private String brandLogoUrl;
    private String brandLogoMd5;
    private int supportUnlock;
    private int supportAnnecy;
    private int timeLimit;
    private int countLimit;
    private int supportInvite;
    //    private String spName;
//    private String spKey;
    private String logoUrl;
    private String logoUrlMd5;
    //    private int sort;
    List<String> hotStyleIdList;
    List<StyleData> hotstyleList;
    List<String> tags;
    List<Bundle> bundleList;
    private boolean enabled;
    private boolean isLiveStyleShow;
    private boolean isEditShow;
    private int supportBonus;
    private List<String> supportTypes;

    public static class Bundle {
        private String store;
        private String alipay;
        private String code;

        public Bundle() {
        }

        //For FeatureInfo
        public Bundle(String store, String alipay, String code) {
            this.store = store;
            this.alipay = alipay;
            this.code = code;
        }

        public String getAlipay() {
            return alipay;
        }

        public void setAlipay(String alipay) {
            this.alipay = alipay;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getStore() {
            return store;
        }

        public void setStore(String store) {
            this.store = store;
        }
    }

    public static class StyleData {

        private String styleNo;
        private String previewImgUrl;

        public String getStyleNo() {
            return styleNo;
        }

        public String getPreviewImgUrl() {
            return previewImgUrl;
        }
    }


    public String getAlipay() {
        return alipay;
    }

    public void setAlipay(String alipay) {
        this.alipay = alipay;
    }

    public String getBrandLogoMd5() {
        return brandLogoMd5;
    }

    public void setBrandLogoMd5(String brandLogoMd5) {
        this.brandLogoMd5 = brandLogoMd5;
    }

    public String getBrandLogoUrl() {
        return brandLogoUrl;
    }

    public void setBrandLogoUrl(String brandLogoUrl) {
        this.brandLogoUrl = brandLogoUrl;
    }

    public List<Bundle> getBundleList() {
        return bundleList;
    }

    public void setBundleList(List<Bundle> bundleList) {
        this.bundleList = bundleList;
    }

    public String getShowCategoryCode() {
        return showCategoryCode;
    }

    public void setShowCategoryCode(String showCategoryCode) {
        this.showCategoryCode = showCategoryCode;
    }

    public String getShowSubCategoryCode() {
        return showSubCategoryCode;
    }

    public void setShowSubCategoryCode(String showSubCategoryCode) {
        this.showSubCategoryCode = showSubCategoryCode;
    }

    //    public String getClientVer() {
//        return clientVer;
//    }
//
//    public void setClientVer(String clientVer) {
//        this.clientVer = clientVer;
//    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getCountLimit() {
        return countLimit;
    }

    public void setCountLimit(int countLimit) {
        this.countLimit = countLimit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEffectMd5() {
        return effectMd5;
    }

    public void setEffectMd5(String effectMd5) {
        this.effectMd5 = effectMd5;
    }

    public String getEffectUrl() {
        return effectUrl;
    }

    public void setEffectUrl(String effectUrl) {
        this.effectUrl = effectUrl;
    }

//    public String getEffectLargeMd5() {
//        return effectLargeMd5;
//    }
//
//    public void setEffectLargeMd5(String effectLargeMd5) {
//        this.effectLargeMd5 = effectLargeMd5;
//    }
//
//    public String getEffectLargeUrl() {
//        return effectLargeUrl;
//    }
//
//    public void setEffectLargeUrl(String effectLargeUrl) {
//        this.effectLargeUrl = effectLargeUrl;
//    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public List<String> getHotStyleIdList() {
        return hotStyleIdList;
    }

    public void setHotStyleIdList(List<String> hotStyleIdList) {
        this.hotStyleIdList = hotStyleIdList;
    }

    public String getImageMd5() {
        return imageMd5;
    }

    public void setImageMd5(String imageMd5) {
        this.imageMd5 = imageMd5;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public int getIsFree() {
        return isFree;
    }

    public void setIsFree(int isFree) {
        this.isFree = isFree;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrlMd5() {
        return logoUrlMd5;
    }

    public void setLogoUrlMd5(String logoUrlMd5) {
        this.logoUrlMd5 = logoUrlMd5;
    }

    public String getPackageId() {
        return packageId;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public String getPackageMd5() {
        return packageMd5;
    }

    public void setPackageMd5(String packageMd5) {
        this.packageMd5 = packageMd5;
    }

    public String getPackageUrl() {
        return packageUrl;
    }

    public void setPackageUrl(String packageUrl) {
        this.packageUrl = packageUrl;
    }

    public String getPreviewTitle() {
        return previewTitle;
    }

    public void setPreviewTitle(String previewTitle) {
        this.previewTitle = previewTitle;
    }

    public String getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(String previewUrl) {
        this.previewUrl = previewUrl;
    }

    public String getShopJsonPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getShopType() {
        return shopType;
    }

    public void setShopType(int shopType) {
        this.shopType = shopType;
    }

    public String getStore() {
        if (store == null) {
            store = "";
        }
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    //Attention:this will be abandoned
    public String getSubtitle() {
//        if (TextUtils.isEmpty(subtitle)) {
//            if (ShopPres.KEY_LARGE_IMAGE_CODE.equalsIgnoreCase(getCode())) {
//                return MakeupApp.getAppContext().getString(R.string.high_resolution_output);
//
//            } else
//                return getTitle();
//        } else
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public int getSupportInvite() {
        return supportInvite;
    }

    public void setSupportInvite(int supportInvite) {
        this.supportInvite = supportInvite;
    }

    public int getSupportUnlock() {
        return supportUnlock;
    }

    public void setSupportUnlock(int supportUnlock) {
        this.supportUnlock = supportUnlock;
    }

    public int getSupportAnnecy() {
        return supportAnnecy;
    }

    public void setSupportAnnecy(int supportAnnecy) {
        this.supportAnnecy = supportAnnecy;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getThumbMd5() {
        return thumbMd5;
    }

    public void setThumbMd5(String thumbMd5) {
        this.thumbMd5 = thumbMd5;
    }

    public String getThumbUrl() {
        return thumbUrl;
    }

    public void setThumbUrl(String thumbUrl) {
        this.thumbUrl = thumbUrl;
    }

    public int getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(int timeLimit) {
        this.timeLimit = timeLimit;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isLiveStyleShow() {
        return isLiveStyleShow;
    }

    public void setLiveStyleShow(boolean liveStyleShow) {
        isLiveStyleShow = liveStyleShow;
    }

    public boolean isEditShow() {
        return isEditShow;
    }

    public void setEditShow(boolean editShow) {
        isEditShow = editShow;
    }

    public int getSupportBonus() {
        return supportBonus;
    }

    public void setSupportBonus(int supportBonus) {
        this.supportBonus = supportBonus;
    }

    public List<StyleData> getHotstyleList() {
        return hotstyleList;
    }

    public void setHotstyleList(List<StyleData> hotstyleList) {
        this.hotstyleList = hotstyleList;
    }

    public List<String> getSupportTypes() {
        return supportTypes;
    }

    public void setSupportTypes(List<String> supportTypes) {
        this.supportTypes = supportTypes;
    }
}
